package com.dd.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@ResponseBody
public class BookController {

    @RequestMapping(value = "selectBook", produces = "application/json;charset=UTF-8")
    public String selectBook(){
        System.out.println("查询图书！");
        return "查询图书";
    }

    @RequestMapping(value = "addBook",produces = "application/json;charset=UTF-8")
    public String addBook(){
        System.out.println("添加图书！");
        return "添加图书";
    }

    @RequestMapping(value = "updateBook",produces = "application/json;charset=UTF-8")
    public String updateBook(){
        System.out.println("修改图书！");
        return "修改图书";
    }

    @RequestMapping(value = "deleteBook",produces = "application/json;charset=UTF-8")
    public String deleteBook(){
        System.out.println("删除图书！");
        return "删除图书";
    }
}
